﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QLDAOL.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="QLDAOL.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ListNews
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var _lstInfo = ViewData["lstInfo"] as IEnumerable<QLDAOL.Models.NEWS_QUESTIONS>; %>
    <div id="content" class="pjpage">
        <div class="left_content">
        </div>
        <div class="main_content">
            <% Html.RenderAction("sidebar", "Project");%>
            <div class="content_page_right">
                <div class="detail">
                    <div class="detail_top">
                        <div class="detail_title">
                            Infomation</div>
                    </div>
                    <div class="detail_content paddingtop50">
                        <div class="block">
                            <% if (_lstInfo != null)
                               {
                                   int i = 0; foreach (var info in _lstInfo)
                                   {
                                       i++;%>
                            <div class="info_item tl">
                                <%: Ajax.RawActionLink(info.Title + "<div class='fr'>" + DateTime.Parse(info.Date_Created.ToString()).ToShortDateString() + "</div>", "InfoDetail", "Infomation", new { info = info.ID }, new AjaxOptions { }, null)%>
                            </div>
                            <%}
                            } %>
                        </div>
                    </div>
                    <div class="detail_bot">
                    </div>
                </div>
            </div>
        </div>
        <div class="right_content">
        </div>
    </div>
</asp:Content>
